package com.common.retrofit.methods;

import com.common.retrofit.base.BaseMethods;
import com.common.retrofit.entity.bean.DaSangBean;
import com.common.retrofit.service.HaiNingService;

import rx.Observable;
import rx.Subscriber;

public class DaSangListMethods extends BaseMethods {

    private static DaSangListMethods m_ins = null;

    public static DaSangListMethods getInstance() {
        if (m_ins == null) {
            synchronized (DaSangListMethods.class) {
                if (m_ins == null) {
                    m_ins = new DaSangListMethods();
                }
            }
        }
        return m_ins;
    }

    @Override
    protected String getHttpUrl() {
        return "Personal/";
    }

    private HaiNingService initService() {
        return getRetrofit().create(HaiNingService.class);
    }


    public void award_lsit(Subscriber<DaSangBean> subscriber,
                     int uid,String hashid ,String id, String fid  ,int page ) {
        Observable observable = initService().award_lsit(System.currentTimeMillis()+"",
                "2be58361228b101d72d041665fd178c7",uid,hashid,id,fid,page
        );
        toSubscribe(observable, subscriber);
    }
}
